<template>
	<div>
		<OrderList :status="status" :member_id="member_id" :order_id="order_id" :assignee_id="assignee_id" :publisher_id="publisher_id"> </OrderList>
	</div>
</template>

<script>
	import Api from '../../../api/api';
	import OrderList from '../../../components/orderlist.vue'
	export default {
		components: {
			OrderList,
		},
		data() {
			return {
				status: 0,
				member_id:'',
				order_id:'',
				assignee_id:'',
				publisher_id:''

			}

		},
		computed: {

		},
		onLoad(e) {
			this.status = e.status?parseInt(e.status):null
			this.order_id = e.order_id?e.order_id:null
			this.member_id = e.member_id?e.member_id:null
			this.assignee_id = e.assignee_id?e.assignee_id:null
			this.publisher_id = e.publisher_id?e.publisher_id:null
			if(this.$Global.user)
			{
				if(this.member_id!=null&&this.member_id==1)
				this.member_id = this.$Global.user._id
				if(this.assignee_id!=null&&this.assignee_id==1)
				this.assignee_id = this.$Global.user._id
				if(this.publisher_id!=null&&this.publisher_id==1)
				this.publisher_id = this.$Global.user._id
			}
		},
		methods: {
			reFresh() {
				var this_tem = this
				console.log("reFresh")
				setTimeout(function() {
					this_tem.$router.go(0)	
				}, 500); // 定时时间
	
			}
		}
	}
</script>

<style>

</style>
